package club.xyes.zkh.ecommerce.commons.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Create by 郭文梁 2019/4/20 0020 15:03
 * Tuple2
 * 二维元组
 *
 * @author 郭文梁
 * @data 2019/4/20 0020
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Tuple2<T1, T2> {
    public static <T1, T2> Tuple2<T1, T2> of(T1 o1, T2 o2) {
        return new Tuple2<>(o1, o2);
    }

    private T1 o1;
    private T2 o2;

    public T1 o1() {
        return o1;
    }

    public T2 o2() {
        return o2;
    }
}
